package com.ruoyi.back.domain

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.Date
import javax.persistence.*

@ApiModel("模板分类")
@Entity
@Table(name = "fly_template_category")
@TableName("fly_template_category")
data class TemplateCategory(

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id 更新的时候需要传递")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    var id: Long? = null,

    @ApiModelProperty("分类类型 1.视频 2.图片")
    var type: Int? = null,

    @ApiModelProperty("分类名称")
    var name: String? = null,

    @ApiModelProperty("是否显示")
    var showCategory: Boolean? = true,

    @ApiModelProperty("排序")
    var orderNum: Int? = 0,

    @ApiModelProperty("创建时间")
    var createTime: Date? = null,
)
